package com.my.cloud.apis;

import com.my.cloud.entities.PayDTO;
import com.my.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/3/8 14:47
 */
//@FeignClient(value = "cloud-payment-service")
@FeignClient(value = "cloud-gateway")
public interface PayFeignApi {
    
    @PostMapping("/pay/add")
    ResultData addPay(@RequestBody PayDTO payDTO);
    
    @GetMapping("/pay/get/{id}")
    ResultData getPayInfo(@PathVariable("id") Integer id);
    
    @GetMapping("/pay/get/info")
    String mylb();

    @GetMapping(value = "/pay/circuit/{id}")
    public String myCircuit(@PathVariable("id") Integer id);
    
    @GetMapping("/pay/bulkhead/{id}")
    String myBulkhead(@PathVariable("id") Integer id);
    
    @GetMapping("/pay/ratelimit/{id}")
    String myRatelimit(@PathVariable("id")Integer id);
    
    @GetMapping("/pay/micrometer/{id}")
    String myMicrometer(@PathVariable("id") Integer id);
    
    @GetMapping("/pay/gateway/get/{id}")
    ResultData getById(@PathVariable("id") Integer id);
    
    @GetMapping("/pay/gateway/info")
    ResultData getGateWayInfo();
}
